package com.youthfilmic.yuejian.weixin.core;

import net.sf.json.JSONObject;

/**
 * Created by youweixi on 15/10/7.
 */
public class ResultConfig {

    /**
     * 操作成功
     * */
    public static int STATUS_GLOBAL_SUCCEED = 0;
    /**
     * 未知错误
     * */
    public static int STATUS_GLOBAL_NOT_KNOWN_WRONG = -2;
    /**
     * 参数错误
     * */
    public static int STATUS_GLOBAL_PARAM_IS_WRONG = -4;
    /**
     * 没有登录
     * */
    public static int STATUS_GLOBAL_USER_NOT_LOGIN = -1;
    /**
     * 订单已被支付
     * */
    public static int STATUS_PAY_ALREADY_PAID = 400012;






    public static JSONObject getResult(int status , String msg){
        JSONObject json = new JSONObject();
        json.put("status", status);
        json.put("msg", msg);
        return json;
    }

}
